﻿using System;
using System.Collections.Generic;
using TimedTask.Models;

namespace TimedTask.BLL
{
    /// <summary>
    /// 记事
    /// </summary>
    public class CityBLL : MSL.Tool.Data.DBAccessBase<City>
    {
        public CityBLL()
            : base("[City]", "Id", true)
        {

        }
        public CityBLL(string connString)
            : base(connString, "[City]", "Id", true)
        {

        }

        public List<City> Query(string name)
        {
            return base.GetList(50, " 1=1 AND name LIKE'" + name + "%' ", "code");
        }
    }
}
